﻿@{
    ViewBag.Title = "Download";
}
@helper FileName(string input)
{
   @input.Substring(input.LastIndexOf('\\') + 1,input.Length -input.LastIndexOf('\\') - 1)
}
<h2>Download</h2>
<ul>
@foreach (var item in ViewBag.files)
{
     
    <li><a href="@Url.Action("Download","File", new { id = @FileName(@item) })">@FileName(@item)</a> </li>
}
</ul>